JavaScript Examples

Index for the PageSpinner JavaScript Examples

Please note that JavaScript is currently only available in Netscape Navigator 2.0 and MS Internet Explorer 3.0, or higher but it is however possible to disable JavaScript in the browser preferences. Do not assume that all in your audience are using a JavaScript enabled browser.

The command set available in JavaScript seems to be extended in each major release of the browsers that support this languague. Read more about this on the page JavaScript Version Info.


The HTML files for these examples can be found inside the folder named JavaScript located in the PageSpinner Examples folder. Use Finder to open a file with PageSpinner to be able to view and edit the source.

Some of the files are Stationery files that will open as untitled documents in PageSpinner.

JavaScript Version Example
Find out which version of JavaScript that is available in the browser

Alert Stationery
See how you can use Alert Dialogs

Scrolling Text Stationery
The famous scrolling text in the status bar.

Random Link Example
Provide your own box of chocolate.

Todays Link Example
Take the reader to the page of the day.

Dynamic Document Stationery
Learn how to make your documents dynamic.

Dynamic News
Let this JavaScript manage the NEW! icons in your pages. Perfect for the busy webmaster.

Cookie Example
Cookies are good for storing small pieces of information on the reader's hard disk. Here is a page that remembers a reader's last visit.

Timer Example
Display a timer on your page, and more...

Redirect JavaScript browsers
Be compatible with all browsers! This single line of JavaScript redirects JavaScript browsers to another page - and display a notice or alternate pages for browsers without JavaScript.

Remote Control Window
Open a custom window - this examples let viewers navigate a site with a simple remote control.

Popup Menu
Example of how to make a popup menu to let viewers navigate between pages.

Popup Menu 2
A modified version of the popup menu without a special Go button plus a note on how to use the menu in frame-based page.

Password
Add a simple JavaScript password protection to a page.

Timed Banner
Commercial time, so put up a banner with lots of different messages.

Please note that JavaScript is a scripting language that is still undergoing development: there are some minor differences between the implementation in Netscape Navigator 2.0 and Netscape Navigator 3.0. The implementation of JavaScript in MS Internet Explorer 3.0 also differs from Netscape's. Also, some the commands described in the JavaScript Authoring Guide doesn't seem to work according to the current documentation (e.g., the document.clear() function).

This may cause problems for Web authors that would like to use JavaScript and support all platforms available on the Internet. Anyway, JavaScript is the scripting language for HTML that - in some form or another - is supported on most major systems.


- More Examples Contents -